package com.wealth.order.enums;

public enum OrderStatusEnum {
	
	DEL(0,"删除"),NOTPAY(1,"未支付"), CANCEL(2,"已取消"),PAY(3,"已支付"),SEND(4,"已发货"),SIGN(5,"已签收"),NOTEVALUATE(7,"未评价");

	
	private int value;
	private String comment;
	private OrderStatusEnum(int value,String comment){
		this.value = value;
		this.comment =comment;
	}
	
	public int getValue(){
		return value;
		
	}
	public String getComment(){
		return comment;
	}
	public static OrderStatusEnum get(int value){
		for (OrderStatusEnum o:OrderStatusEnum.values()) {
			if(o.value ==value){
				return o;
			}
		}
		return null;
	}
	
}
